package hsl.study.v1;


/**
 * @author HSL
 * @version 1.0
 * @data 2025/11/17 9:50
 * @desc todo
 */

public class RealSubject implements Subject {
    @Override
    public void doSomething() {
        System.out.println("RealSubject.doSomething,RealSubject:正在执行核心逻辑");
    }

    @Override
    public String sayHello(String name) {
        String result = "你好," + name + "!";
        return result;
    }
}
